package com.ly.springsolrtest.springsolr.controller;

import com.ly.springsolrtest.springsolr.bo.Book;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * Description: springsolr
 * <p>
 * Created by linweijian on 2018/5/24 13:32
 */
@RestController
@RequestMapping("/index")
public class IndexController {
    @PostMapping("/book")
    public Book  index(Book book){
        System.out.println(book);
        return book;
    }
    @GetMapping("/time")
    public String  index(Date b){
        System.out.println(b);
        return "success";
    }

}
